package com.serverlite.framework.dao.mapping;

public class Mapping {
    
    public static String getTableName(Class<?> clazz){
        if(clazz.isAnnotationPresent(Table.class)){
            Table table = clazz.getAnnotation(Table.class);
            return table.value();
        } else {
            throw new RuntimeException(clazz + " need table annotation.");
        }
    }
}
